package lancs.mobilemedia.core.ui.controller;

import java.util.Hashtable;

import lancs.mobilemedia.core.ui.controller.commands.GoToPreviousScreen;
import lancs.mobilemedia.core.ui.controller.commands.SelectAlbum;

public class PhotoListControllerMapper implements ControllerMapper {

	protected Hashtable commands;

	public PhotoListControllerMapper() {
		commands = new Hashtable();
		commands.put("Back", new GoToPreviousScreen());
		commands.put("Cancel", new GoToPreviousScreen());
		init();
	}

	public ControllerCommand getCommand(String label) {
		return (ControllerCommand) commands.get(label);
	}

	public void init() {
		commands.put("Select", new SelectAlbum());
	}

}
